package com.wanho.qz103.hrsaas.sys.dao;

import com.wanho.qz103.hrsaas.commons.dao.BaseDAO;
import com.wanho.qz103.hrsaas.commons.exception.DAOException;
import com.wanho.qz103.hrsaas.sys.pojos.Permission;

import java.util.List;

/**
 * 权限 sys_permission表 基本操作
 */
public interface PermissionDAO extends BaseDAO<Permission> {
    /**
     * 根据 用户id 查询 权限
     * @param userId
     * @return
     * @throws DAOException
     */
    List<Permission> selectByUserId(String userId) throws DAOException ;

    List<Permission> selectByRoleId(String id) throws DAOException;
}
